import http from './http';

export const studentsListApi = (params?: object) =>
  http.get('/api/students/list', params);

export const studentsDelApi = (data?: object) =>
  http.post('/api/students/del', data);

export const studentsAddApi = (data?: object) =>
  http.post('/api/students/add', data);

export const getKeyApi = (params?: object) =>
  http.get('/api/users/key', params);

export const loginApi = (data?: object) => http.post('/api/users/login', data);
